package com.yb.core.util;

import java.util.UUID;

/**
 * Copyright (C), 2022-2023, 姚兵
 * Author: 32210
 * Date: 2023/5/18 16:48
 * FileName: TokenGenerator
 * Description:
 */
public class XczxTokenGenerator {

    public static final String generate(String username){
        StringBuilder sb=new StringBuilder();
        String s = UUID.randomUUID().toString();
        sb.append(s).append(username);
        String tokenMd5 = Md5Util.getMd5(sb.toString());
        return tokenMd5;
    }
}
